{"ast":null,"code":"import apiClient from \"../http\";\nimport { getContacts } from \"../routes\";\nexport default class ContactService {\n  static async getContacts() {\n    return apiClient.get(getContacts());\n  }\n  static async addContact() {\n    return apiClient.get(getContacts());\n  }\n}","map":{"version":3,"names":["apiClient","getContacts","ContactService","get","addContact"],"sources":["/data/messenger.client/src/services/ContactService.ts"],"sourcesContent":["import apiClient from \"../http\";\nimport {AxiosResponse} from 'axios';\nimport {getContacts} from \"../routes\"\nimport {ContactListResponse} from \"../models/response/ContactListResponse\";\nimport {ContactListItem} from \"../models/response/ContactListItem\";\n\nexport default class ContactService {\n    public static async getContacts(): Promise<AxiosResponse<ContactListResponse>> {\n        return apiClient.get<ContactListResponse>(getContacts());\n    }\n\n    public static async addContact(): Promise<AxiosResponse<ContactListItem>> {\n        return apiClient.get<ContactListResponse>(getContacts());\n    }\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,SAAS;AAE/B,SAAQC,WAAW,QAAO,WAAW;AAIrC,eAAe,MAAMC,cAAc,CAAC;EAChC,aAAoBD,WAAW,GAAgD;IAC3E,OAAOD,SAAS,CAACG,GAAG,CAAsBF,WAAW,EAAE,CAAC;EAC5D;EAEA,aAAoBG,UAAU,GAA4C;IACtE,OAAOJ,SAAS,CAACG,GAAG,CAAsBF,WAAW,EAAE,CAAC;EAC5D;AACJ"},"metadata":{},"sourceType":"module"}